/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * 
 * 
 *
 * 
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;


namespace JDCloudSDK.Antipro.Model
{

    /// <summary>
    ///  protectionRuleSpec
    /// </summary>
    public class ProtectionRuleSpec
    {

        ///<summary>
        /// 被防护 IP, 缺省时修改防护包实例防护规则
        ///</summary>
        public string Ip{ get; set; }
        ///<summary>
        /// 防护规则类型, 修改 ip 防护规则时必传, 0: 设置 ip 使用防护包规则, 1: 设置 IP 使用自定义规则
        ///</summary>
        public int? Type{ get; set; }
        ///<summary>
        /// 清洗触发值 bps, 修改实例防护规则或自定义 IP 防护规则时必传
        ///</summary>
        public long? CleanThresholdBps{ get; set; }
        ///<summary>
        /// 清洗触发值 pps, 修改实例防护规则或自定义 IP 防护规则时必传
        ///</summary>
        public long? CleanThresholdPps{ get; set; }
        ///<summary>
        /// 虚假源, 0: 关闭, 1: 开启, 修改实例防护规则或自定义 IP 防护规则时必传
        ///</summary>
        public int? SpoofIpEnable{ get; set; }
        ///<summary>
        /// 源新建连接限速, 0: 关闭, 1: 开启, 修改实例防护规则或自定义 IP 防护规则时必传
        ///</summary>
        public int? SrcNewConnLimitEnable{ get; set; }
        ///<summary>
        /// 源新建连接速率, 修改实例防护规则或自定义 IP 防护规则时必传
        ///</summary>
        public long? SrcNewConnLimitValue{ get; set; }
        ///<summary>
        /// 目的新建连接, 0: 关闭, 1: 开启, 修改实例防护规则或自定义 IP 防护规则时必传
        ///</summary>
        public int? DstNewConnLimitEnable{ get; set; }
        ///<summary>
        /// 目的新建连接速率, 修改实例防护规则或自定义 IP 防护规则时必传
        ///</summary>
        public long? DstNewConnLimitValue{ get; set; }
        ///<summary>
        /// 报文最小长度, 取值范围 [1, datagramRangeMax)
        ///</summary>
        public long? DatagramRangeMin{ get; set; }
        ///<summary>
        /// 报文最大长度, 取值范围 (datagramRangeMin, 1518]
        ///</summary>
        public long? DatagramRangeMax{ get; set; }
        ///<summary>
        /// geo 拦截地域编码列表. 查询 &lt;a href&#x3D;&#39;http://docs.jdcloud.com/anti-ddos-protection-package/api/describegeoareas&#39;&gt;describeGeoAreas&lt;/a&gt; 接口获取可设置的地域编码列表
        ///</summary>
        public List<string> GeoBlackList{ get; set; }
        ///<summary>
        /// IP 黑名单列表
        ///</summary>
        public List<string> IpBlackList{ get; set; }
        ///<summary>
        /// IP 白名单列表
        ///</summary>
        public List<string> IpWhiteList{ get; set; }
    }
}
